import requests


def test():
    resp = requests.get('http://www.baidu.com')

    #
    print(resp.status_code)

    #
    #print(resp.text)
    #print(resp.content)  # 二进制

    #
    print(resp.headers)

    #
    print(resp.cookies)
    print(resp.cookies.get_dict())
    print(resp.cookies.items())
